﻿using AutoMapper;
using TomNet.Demo.Entity.Entities;
using TomNet.Demo.Service.User.Input;

namespace TomNet.Demo.Service.User
{
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<UserAddInput, UserEntity>()
                .ForMember(d => d.LoginName, m => m.MapFrom(s => s.Name));
        }
    }
}
